//
//  SW_ITEM.m
//  MM2
//
//  Created by Charles How on 12-4-3.
//  Copyright (c) 2012年 hust. All rights reserved.
//

#import "SW_ITEM.h"

/////////////////////软件列表的数据信息链接
@implementation SW_ITEM

//@synthesize image;
@synthesize imageData;
@synthesize name;
@synthesize Id;
@synthesize url;


- (id) initWithCoder: (NSCoder *)coder  
{  
    if (self = [super init])  
    {  
        //self.image = [coder decodeObjectForKey:@"_image"];  
        self.imageData = [coder decodeObjectForKey:@"_imageData"];  
        self.name = [coder decodeObjectForKey:@"_name"];  
        self.Id = [coder decodeObjectForKey:@"_Id"];  
        self.url = [coder decodeObjectForKey:@"_url"];  
    }  
    return self;  
}  
- (void) encodeWithCoder: (NSCoder *)coder  
{  
    //[coder encodeObject:image forKey:@"_image"];  
    [coder encodeObject:imageData forKey:@"_imageData"];  
    [coder encodeObject:name forKey:@"_name"];  
    
    [coder encodeObject:Id forKey:@"_Id"];  
    [coder encodeObject:url forKey:@"_url"];  
    
}  

@end
